package org.jeecg.basic.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 自定义参数
 * @Author: LiCY
 * @Date:   2023-08-06
 * @Version: V1.0
 */
@Data
@TableName("mes_part_tag_cfg")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mes_part_tag_cfg对象", description="自定义参数")
public class MesPartTagCfg implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@Excel(name = "主键ID", width = 15)
    @ApiModelProperty(value = "主键ID")
    @TableId
    private Integer recId;
	/**产线或产线组*/
	@Excel(name = "产线或产线组", width = 15, dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
	@Dict(dictTable = "mes_line_cfg", dicText = "LINE", dicCode = "LINE")
    @ApiModelProperty(value = "产线或产线组")
    private String line;
	/**产品或产品组*/
	@Excel(name = "产品或产品组", width = 15)
    @ApiModelProperty(value = "产品或产品组")
    private String partno;
	/**配置名称*/
	@Excel(name = "配置名称", width = 15)
    @ApiModelProperty(value = "配置名称")
    @Dict(dicCode = "mes_part_tag_cfg@NAME")
    private String name;
	/**配置描述*/
	@Excel(name = "配置描述", width = 15)
    @ApiModelProperty(value = "配置描述")
    private String description;
	/**值*/
	@Excel(name = "值", width = 15)
    @ApiModelProperty(value = "值")
    private String value;
	/**更新时间*/
	@Excel(name = "更新时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date ctime;
}
